package java9;

import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class Q5_1 {

	@SuppressWarnings("null")
	public static void main(String[] args) {
		int[] arr = new int[5];
		Scanner in = new Scanner(System.in);
		while (in.hasNext()) {
			String str = in.next();
			try {
				if (str.equals("arr")) {
					int n = in.nextInt();
					arr[n] = n;
				} else if (str.equals("null")) {
					String str1 = null;
					str1.length();
				} else if (str.equals("cast")) {
					List<Object> str2 = new ArrayList<Object>();
					str2.add("a");
					Integer x = (Integer) str2.get(0);
					System.out.println(x);
				} else if (str.equals("num")) {
					String str3 = in.next();
					Integer.parseInt(str3);
				} else {
					break;
				}

			}catch (Exception ex) {
				System.out.println(ex);
			}
//			catch (ArrayIndexOutOfBoundsException ex) {
//				System.out.println(ex);
//			} catch (NullPointerException ex) {
//				System.out.println(ex);
//			} catch (ClassCastException ex) {
//				System.out.println(ex);
//			} catch (NumberFormatException ex) {
//				System.out.println(ex);
//			}
		}
		in.close();
	}

}
